import request from "@/utils/request";

export const login = (data) => {
  return request({
    url: "/sys/login",
    method: "POST",
    data,
  });
};
export const getInfo = (params) => {
  return request({
    url: "/sys/profile",
    method: "get",
    params,
  });
};
export const updatePass = (data) => {
  return request({
    url: "/sys/user/updatePass",
    method: "PUT",
    data,
  });
};
